import request from '@/utils/request'
import { praseStrEmpty } from "@/utils/admin";


export function listAppInst(query) {
  return request({
    url: '/appInst/page',
    method: 'post',
    data: query
  })
}


export function changeStatus(id,status) {
  let query = {
    "id":id,
    "newStatus":status
  }
  return request({
    url: '/appInst/changeStatus',
    method: 'post',
    params: query
  })
}




export function addAppInstDes(data) {
  return request({
    url: '/appInst/addInstDes',
    method: 'post',
    data: data
  })
}




export function delInst(id) {
  return request({
    url: '/appInst/delInst?id='+id ,
    method: 'get'
  })
}
